﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="RioStudio.Website.View.Admin.Service.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    Admin - Service
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="servicePage" align="left">
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="grdService">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdService" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="True"
            Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <asp:HyperLink ID="lnkAddNew" runat="server" Text="Thêm mới" NavigateUrl="~/Admin/Service/Add" />
        <telerik:RadGrid ID="grdService" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            OnNeedDataSource="grdService_NeedDataSource" OnItemCommand="grdService_ItemCommand">
            <MasterTableView DataKeyNames="ServiceID">
                <Columns>
                    <telerik:GridBoundColumn DataField="ServiceName" HeaderText="Tên dịch vụ" />
                    <telerik:GridBoundColumn DataField="CreatedDate" HeaderText="Ngày viết" />
                    <telerik:GridButtonColumn CommandName="Modify" Text="Sửa" />
                    <telerik:GridButtonColumn ConfirmText="Có phải bạn muốn xóa Dịch vụ này?" CommandName="Remove"
                        Text="Xóa" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
</asp:Content>
